Skip to content

Preserve full Claude model lineage in canonical identifiers - #285

Open
sanjeevafk wants to merge 3 commits into
janekbaraniewski:mainfrom
sanjeevafk:main
Open

Preserve full Claude model lineage in canonical identifiers#285
sanjeevafk wants to merge 3 commits into
janekbaraniewski:mainfrom
sanjeevafk:main

Conversation

@sanjeevafk

Copy link
Copy Markdown

Summary

Claude model identifiers such as claude-4.6-opus-high-thinking were being normalized to:

anthropic/claude-opus

This loses the model version and causes different Claude releases to be grouped together.

This change preserves the full lineage:

anthropic/claude-opus-4.6

Changes

  • Use the computed Claude lineage for Canonical
  • Add regression coverage for heuristic normalization
  • Keep existing override behavior unchanged

Testing

  • CGO_ENABLED=1 go test ./...
  • go vet ./internal/core
  • gofmt clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant